package com.atguigu;

import com.atguigu.common.base.repository.impl.ParallelSaveRepositoryImpl;
import com.atguigu.mock.MockMain;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@EnableJpaRepositories(repositoryBaseClass = ParallelSaveRepositoryImpl.class)
public class MockFinanceApplication {

    public static void main(String[] args) {
        System.out.println("正在初始化Spring Boot环境");
        ConfigurableApplicationContext context = SpringApplication.run(MockFinanceApplication.class, args);
        MockMain mockMain = context.getBean(MockMain.class);
        mockMain.run();
    }

}
